
#if (1)

#include <stdio.h>
#include <string.h>

#include "stm32f10x.h"
#include "tick.h"
#include "mma7361.h"
#include "usart.h"
#include "linklist.h"
#include "ds18b20.h"
#include "Bluetooth.h"
#include "StateMachine.h"

#undef TRACE_LEVEL
#undef TRACE_TITLE
#undef TRACE_TITLE
#define TRACE_LEVEL	TRACE_LEVEL_DEBUG
#define TRACE_NAME  TRACE_NAME_DISABLE
#define TRACE_TITLE "MAIN"
#include "trace.h"


#define WELCOME_MESSAGE		"================ PhySensor3 ================"


extern int board_lowlevel_init(void);
extern int PhySensorIsAlive(void);

int main(void) {
// 	double angleX, angleY, angleZ;
// 	ds ds18b20;
// 	uint16_t temp = 0;
	uint8_t count = 1;
	
	board_lowlevel_init();
	
	TRACE_DEBUG_WP("\r\n%s\r\n", WELCOME_MESSAGE);
	// BluetoothCtrlIOInit();
	// BluetoothReset(-1);
	
	// while(count);
	// TIMER_Main();
	// BetteryMonitorADCMain();
	// SensorChannelADCMain();
	// while (count);
	// AnalogTempSensorMain();
	// disableBluetooth();
	// E2PROM_Main();
	// MMA_Main();
	// USART_Main();
	// PT1000Main();
	// DigitalSensorMain();
	// ChannelMain();
	// enableBluetooth();
	// StateMachine();
	// MMA8451Main();
	// FrequencySensorMain();
	// while (1);
	PhySensorIsAlive();
	while (1);
}

#endif /* if (0) */
